package com.example.redissiontest.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Lay
 * @description
 * @date 2023年04月23日 15:37
 */
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "ticket")
public class Ticket implements Serializable {

    @Id
    private Long id;

    @Column(name = "ticket_count")
    private Long ticketCount;
}
